#include<stdio.h>
typedef struct 
{
    unsigned char T0_Mod : 2;
    unsigned char T0_Ct  : 1;
    unsigned char T0_Gate: 1;
    unsigned char T1_Mod : 2;
    unsigned char T1_Ct  : 1;
    unsigned char T1_Gate: 1;
} Mod_Str_t;
typedef union 
{
    Mod_Str_t Reg_Str;
    unsigned char ReadOut;
} Reg_Mod_t;

int main(void)
{
    Reg_Mod_t MyReg;
    MyReg.Reg_Str.T0_Mod = 0b01;
    MyReg.Reg_Str.T0_Ct = 0b0;
    MyReg.Reg_Str.T0_Gate = 0b1;
    printf("The value of TMOD is %#x", MyReg.ReadOut);
    return 0;
}